export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
import type { Hospital } from '../home/type'

export interface BookingRule {
  cycle: number
  releaseTime: string
  stopTime: string
  quitTime: string
  rule: string[]
}
// 详情医院列表
export interface HospitalDetail {
  bookingRule: BookingRule
  hospital: Hospital
}

export interface HospitalDdetailResponseData extends ResponseData {
  data: HospitalDetail
}

// 科室数据
export interface Department {
  depcode: string
  depname: string
  children?: Department[]
}

export type DepartmentArr = Department[]

export interface DepartmentResponseData extends ResponseData {
  data: DepartmentArr
}

// 预约挂号
export interface BookingSchedule {
  workDateMd: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
  status: number
}

export interface BaseMap {
  bigname: string
  depname: string
  hosname: string
  workDateString: string
}

export type BookingScheduleList = BookingSchedule[]

export interface BookingScheduleResponseData extends ResponseData {
  data: {
    total: number
    bookingScheduleList: BookingScheduleList
    baseMap: BaseMap
  }
}
